import request from './request.js'


const register = (userInfo) => {
    let url = '/api/user/register';
    return request.post(url, userInfo);
}


const getEmailCode = (data) => {
    let url = '/api/user/getCode';
    return request.post(url, data);
}

const login = (userInfo) => {
    let url = '/api/v1/user/login';
    return request.post(url, userInfo);
}



export {
    register,
    getEmailCode,
    login,
}
